home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
umich
/
tex
/
td187src.lzh
/
MAGICTYP.I
< prev
next >
Wrap
Text File
|
1991-06-08
|
2KB
|
86 lines
(*######################################################################
MAGIC Modula's All purpose GEM Interface Cadre
¯ ¯ ¯ ¯ ¯
########################################################################
Typdeklarationen nach Profibuch, Anhang C
Implementation für Megamax-Modula-2
########################################################################
V2.00 16.10.90 Peter Hellinger Anpassung an neues MagicSys
V1.04 05.08.90 Peter Hellinger
V1.00 (C) by Peter Hellinger
######################################################################*)
IMPLEMENTATION MODULE MagicTypes;
FROM SYSTEM IMPORT ASSEMBLER, BYTE, ADDRESS;
FROM MagicSys IMPORT Nil, Null,
Bit0, Bit1, Bit2, Bit3, Bit4, Bit5, Bit6, Bit7,
Bit8, Bit9, Bit10, Bit11, Bit12, Bit13, Bit14, Bit15,
Byte, ByteSet,
sWORD, sINTEGER, sCARDINAL, sBITSET,
lWORD, lINTEGER, lCARDINAL, lBITSET;
IMPORT MagicSys;
VAR a: ADDRESS;
PROCEDURE LineA (): PtrLINEA;
BEGIN
ASSEMBLER
DC.W 0A000H; LineA initialisieren
MOVE.L D0, a
END;
RETURN a;
END LineA;
PROCEDURE LineAFonts (): PtrLINEAFonts;
BEGIN
ASSEMBLER
DC.W 0A000H; LineA initialisieren
MOVE.L A1, a
END;
RETURN a;
END LineAFonts;
PROCEDURE Vdiesc (): PtrVDIESC;
BEGIN
ASSEMBLER
DC.W 0A000H; LineA initialisieren
MOVE.L D0, a
END;
RETURN a - ADDRESS (038EH);
END Vdiesc;
VAR sysbase[04F2H]: PtrSYSHDR;
PROCEDURE Syshdr (): PtrSYSHDR;
VAR stack: ADDRESS;
sys: PtrSYSHDR;
BEGIN
ASSEMBLER
MOVE.L #0, -(SP)
MOVE.W #32, -(SP)
TRAP #1
ADDQ.L #6, SP
MOVE.L D0, stack(A6)
MOVE.L sysbase, sys(A6)
MOVE.L stack(A6), -(SP)
MOVE.W #32, -(SP)
TRAP #1
ADDQ.L #6, SP
END;
RETURN sys;
END Syshdr;
END MagicTypes.